#pragma once

#include "stdafx.h"


//////////////////////////////////////////////////////////////////////////
///

class CWaitWnd : public WindowImplBase
{
public:
	CWaitWnd(void);
	~CWaitWnd(void);

public:
	virtual void OnFinalMessage(HWND);
	virtual CDuiString GetSkinFile();
	virtual LPCTSTR GetWindowClassName(void) const;
	virtual void Notify(TNotifyUI &msg);
	virtual void InitWindow();


	virtual LRESULT OnSysCommand(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT HandleCustomMessage(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);


private:

	CControlUI *pwait_ctl;
	CContainerUI *pwait_ctn;

	CRingUI *pwait_ring;

};



unsigned long wm_wait_wnd_find_addr(HWND hwnd, void *addr, unsigned long start_pos, int direct);

unsigned long wm_wait_wnd_find_inst(HWND hwnd, void *pinst, unsigned long start_pos, int direct);


unsigned long wm_wait_wnd_find_ct(HWND hwnd, void *pvar, unsigned long start_pos, int direct);

unsigned long wm_wait_wnd_find_reg(HWND hwnd, void *pvar, unsigned long start_pos, int direct);










